import request from '@/utils/request'

// 查询设备类型列表
export function listRoomInfo(query) {
  return request({
    url: '/room/roomInfo/list',
    method: 'get',
    params: query
  })
}

// 新增设备类型
export function addRoomInfo(data) {
  return request({
    url: '/room/roomInfo',
    method: 'post',
    data: data
  })
}

// 修改设备类型
export function updateRoomInfo(data) {
  return request({
    url: '/room/roomInfo',
    method: 'put',
    data: data
  })
}

// 删除评论
export function delRoomInfo(id) {
  return request({
    url: '/room/roomInfo/' + id,
    method: 'delete'
  })
}
